<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%     
	String path = request.getContextPath();     
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";     
%>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>查看项目</title>
    <base href="<%=basePath%>"/>
    <link rel="stylesheet" type="text/css" href="css/common.css" />
    <style type="text/css">
    	fieldset,legend,form,table,tr,td,textarea{margin:0;padding:0}
    	table{margin:10px 10px};
  		td{line-height: 40px;}
  		label {font-weight:bold;}
	    input[type="text"]{width:250px;}
	    input[type="password"]{width:250px;}
	    input[type="textarea"]{width:250px;}  		
    </style>
  </head>
  <body>
    <fieldset>
      <legend>查看项目：</legend>  
        <table>
          <tr>
            <td><label for="name">项目名称：</label></td>
            <td>
            	<input type="text" disabled="disabled" value="${sp.name }" />
            </td>
          </tr>
          <tr>
            <td><label for="name">项目版本：</label></td>
            <td>
            	<input type="text"  disabled="disabled" value="${sp.version }" />
            </td>
          </tr>
          <tr>
            <td><label for="projectManager">项目经理：</label></td>
            <td>
            	<input type="text" disabled="disabled" value="${sp.cnName }" />
            </td>
          </tr>
          <tr>
            <td><label for="consumer">客户：</label></td>
            <td>
            	<input type="text"  disabled="disabled" value="${sp.consumer }" />
            </td>
          </tr>
          <tr>
            <td><label for="status">状态：</label></td>
            <td>
               
					<c:forEach items="${dictItemList}" var="dict">
					   <c:if test="${sp.status == dict.value}">
					      <input type="text"  disabled="disabled" value="${dict.name}" />
					   </c:if>
					</c:forEach>
			 
            </td>
          </tr>
          <tr>
            <td><label for="createTime">创建时间：</label></td>
            <td><input type="text"  disabled="disabled" value="${sp.createTime}" /></td>
          </tr>
          
          <tr>
            <td valign="top"><label for="description">描述：</label></td>
            <td valign="top"><textarea  disabled="disabled" cols="40" rows="3"><c:out value="${sp.description }"/></textarea></td>
          </tr>                     
          <tr>
            <td></td>
            <td>
            	<input type="button" id="btn_back" value="返回" onclick="history.back();" style="width:80px;" />
            </td>
          </tr>
        </table>  
    </fieldset>  
  </body>
</html>